package com.yswwpp.mybatis.persist;

import java.util.Date;

public class User {

	private String userCode;
	private String userName;
	private Date createTime;
	private Date updateTime;
	
	
	public User(String userCode, String userName) {
		super();
		this.userCode = userCode;
		this.userName = userName;
		this.createTime = new Date();
		this.updateTime = this.createTime;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "User [userCode=" + userCode + ", userName=" + userName + ", createTime=" + createTime + ", updateTime="
				+ updateTime + "]";
	}

}
